package org.dromara.system.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 问题项对象 t_question
 *
 * @author Lion Li
 * @date 2024-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_question")
public class TQuestion extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 问题ID
     */
    @TableId(value = "question_id", type = IdType.AUTO)
    private Integer questionId;

    /**
     * 表单ID
     */
    private Integer surveyId;

    /**
     * 问题描述
     */
    private String questionText;

    /**
     * 问题类型
     */
    private String questionType;

    /**
     * 是否必填
     */
    private Integer required;

    /**
     * 排序值(越小越靠前)
     */
    private Integer orderIndex;


}
